$(document).ready(function(){
//	$('#bgPopup').hide();
	$('#formdangky').hide();
	
	$('.dangky').click(function(){
	//var plant = document.getElementsByClassName('dangky');
//	var fruitCount = plant.getAttribute('data-spacing');
	//var abc = document.querySelectorAll('.dangky')
	//var fruitCount = abc.getAttribute('data-spacing');
	alert(fruitCount);
//	$('#bgPopup').fadeIn();
	$('#formdangky').load('http://localhost/hoidap/Source/likes/index/getuserlikesbypost?post=1');	
	$('#formdangky').fadeIn('show');
	});
	
	/*
	$('#bgPopup').click(function(){
		$('#bgPopup').fadeOut();
		$('#formdangky').fadeOut();
	});
	*/
	$('#btn_close_dk').live('click',function(){
	//	$('#bgPopup').fadeOut();
		$('#formdangky').fadeOut();
	});
	
	
});
